package xyz.renyumeng.xkm.client.order;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.renyumeng.xkm.model.order.OrderInfo;

/**
 * @author renyumeng
 * @date Created in 17:18 2023/6/30
 */


@RestController
@FeignClient(
        value = "service-order",
        contextId = "order"
//        configuration = FeignConfig.class
)
@RequestMapping("/admin/order/inner")
public interface OrderFeignClient {

    @PostMapping("/add")
    Boolean innerAddOrder(@RequestBody OrderInfo orderInfo);
}
